<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页 | {$system_name}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="{_ADMIN_STATIC_}/i/favicon.png">
    <!-- <link rel="apple-touch-icon-precomposed" href="{_ADMIN_STATIC_}/i/app-icon72x72@2x.png"> -->
    <link rel="stylesheet" href="{_ADMIN_STATIC_}/css/amazeui.min.css" />
    <link rel="stylesheet" href="{_ADMIN_STATIC_}/css/admin.css">
    <link rel="stylesheet" href="{_ADMIN_STATIC_}/css/app.css">
    <!-- <script src="{_ADMIN_STATIC_}/js/echarts.min.js"></script> -->

</head>

<body data-type="index">
    <!-- 头部导航栏 -->
    {include file='public/header'}
    <!-- 左侧侧边栏 -->
    {include file='public/side'}
    <!-- 中间内容开始 -->

    <!-- 标题 -->
    <div class="tpl-content-page-title">
        {$system_name} -- 个人信息
    </div>
    <!-- 提示信息 -->
    <div class="tpl-content-scope">
        <div class="note note-info">
            <h3>管理员昵称： {$admin_info->name}
                <span class="close" data-close="note"></span>
            </h3>
            <p><span class="label label-danger">提示:</span>
                当前页面为管理员的信息页面
            </p>
        </div>
    </div>

    <!-- 内容 -->
    <div class="row">
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12" style="cursor: pointer;" onclick="edit_info()">
            <div class="dashboard-stat blue">
                <div class="visual">
                    <i class="am-icon-comments-o"></i>
                </div>
                <div class="details">
                    <div class="number"> 基本信息 </div>
                </div>
                <div class="more" href="javascript:void(0);"> 点击进入
                    <i class="m-icon-swapright m-icon-white"></i>
                </div>
            </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12" style="cursor: pointer;" onclick="edit_password()">
            <div class="dashboard-stat red">
                <div class="visual">
                    <i class="am-icon-bar-chart-o"></i>
                </div>
                <div class="details">
                    <div class="number"> 修改密码 </div>
                    <div class="desc"> </div>
                </div>
                <div class="more" href="javascript:void(0);"> 点击进入
                    <i class="m-icon-swapright m-icon-white"></i>
                </div>
            </div>
        </div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12"></div>
        <div class="am-u-lg-3 am-u-md-6 am-u-sm-12"></div>

    </div>


    <!-- 中间内容结束 -->
    <!-- 底部 -->
    <!-- {include file="public/footer"} -->

    <script src="{_ADMIN_STATIC_}/lib/jquery/jquery.js"></script>
    <script src="{_ADMIN_STATIC_}/js/amazeui.min.js"></script>
    <script src="{_ADMIN_STATIC_}/js/app.js"></script>
    <script src="{_ADMIN_STATIC_}/lib/layer/layer.js"></script>
    <script>

        // 编辑基本信息
        function edit_info() {
            layer.open({
                type: 2,
                title: '修改基本资料',
                skin: 'layui-layer-rim', //加上边框
                area: ['420px', '380px'], //宽高
                content: '{$edit_info}',
                end:function(e){
                    window.location.reload();
                }
            });
        }

        // 编辑密码
        function edit_password() {
            layer.open({
                type: 2,
                title: '修改密码',
                skin: 'layui-layer-rim', //加上边框
                area: ['420px', '270px'], //宽高
                content: '{$edit_password}'
            });
        }



    </script>
</body>

</html>